package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_sign_in", autoSave = true)
public class LogActivitySignIn {


    @FieldTypeAnnotation(isIndex = true)
    int activityId;

    @FieldTypeAnnotation(isIndex = true)
    long userId;

    @FieldTypeAnnotation(desc = "签到类型：1：签到；0：补签")
    int signInType;

    @FieldTypeAnnotation(desc = "档位")
    int day;

    @FieldTypeAnnotation(desc = "奖励")
    String reward;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogActivitySignIn(int activityId, long userId, int signInType, int day, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.signInType = signInType;
        this.day = day;
        this.reward = reward;
        this.time = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getSignInType() {
        return signInType;
    }

    public void setSignInType(int signInType) {
        this.signInType = signInType;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
